import { createApp } from 'vue'
import './style.css'
import App from './App.vue'

import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css'
//@ts-ignore  //忽略ts检查
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'  // 中文
//Svg插件图标
//@ts-ignore
import 'virtual:svg-icons-register'
import '@/styles/index.scss' // global css  全局样式
//全局组件
import globalComponents from './components/index.ts'

//路由
import router from './router'
import pinia from './store'

import './permission.ts' // permission control


const app = createApp(App)

app.use(ElementPlus,{
    locale: zhCn
})

app.use(globalComponents)
app.use(router)
app.use(pinia)


// console.log(import.meta.env)
app.mount('#app')
